#pragma once

#ifndef _CSTATS_H_
#define _CSTATS_H_

#include "define.h"
#include "CBaseEntity.h"


class CChar;

class CStats {

public:

	unsigned short cExp, nExp;

	unsigned short atk, def;

	struct elements ele;

	struct nation n;

	unsigned char homepoint;

	CStats::CStats();

	static int CStats::calcMaxHP( int raceIndex, int mjob, int mlvl, int sjob, int slvl );

	static int CStats::calcMaxMP( int raceIndex, int mjob, int mlvl, int sjob, int slvl );

	static int CStats::getStat(int statIndex, int raceIndex, int mjob, int mlvl, int sjob, int slvl );

	static int CStats::calcStats(CBaseEntity * Cbe);
	
	static int CStats::getJobGrade(int x, int y);

};



#endif